package com.woniuxy.hotel.api;

import com.woniuxy.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author kevin kwok
 * @create 2021-05-24 20:07
 */
@FeignClient(value = "hotel-search",contextId = "free")
public interface FreeChooseAPI {
    /**
     * 根据用户输入关键字进行ES检索
     * */
    @GetMapping("/searchByFree")
    public Result searchByFree(String searchName);
}
